package com.example.springbootvalidated.utils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
 * Created by IntelliJ IDEA2022.3.2
 * @Author: Tenghw
 * @Date: 2023/05/05  16:09
 * @Description: 统一返回数据
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResultReturn implements Serializable {
    private static final long serialVersionUID = -814251499058122060L;
    private Integer code;
    private String message;
    private Object data;

    public ResultReturn(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}